package com.gzhryc.net_marketing.api.protocol.goods;

import com.gzhryc.common.api.SecurityResponse;
import com.gzhryc.net_marketing.core.models.GoodsTypeItem;

import java.io.Serializable;
import java.util.List;

public class GoodsTypeListResponse extends SecurityResponse<GoodsTypeListResponse.Body> {

    private static final long serialVersionUID = 1L;

    public GoodsTypeListResponse() {
        this.body = new Body();
    }

    public GoodsTypeListResponse(Integer code) {
        super(code);
        this.body = new Body();
    }

    public GoodsTypeListResponse(Integer code, String msg) {
        super(code,msg);
        this.body = new Body();
    }

    public static class Body implements Serializable {

        private static final long serialVersionUID = 1L;

        private List<GoodsTypeItem> items;

        public List<GoodsTypeItem> getItems() {
            return items;
        }

        public void setItems(List<GoodsTypeItem> items) {
            this.items = items;
        }
    }
}
